

<%@ page import="auction.Auction" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'auction.label', default: 'Auction')}" />
        <title>Auktion bearbeiten</title>
    </head>
    <body>
        <div id="navi" class="col_12 col">
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body col_12 col">
            <h1>Auktion bearbeiten</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${auctionInstance}">
            <div class="errors">
                <g:renderErrors bean="${auctionInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${auctionInstance?.id}" />
                <g:hiddenField name="version" value="${auctionInstance?.version}" />
                <div class="dialog">
                    <table class="col_8 col">
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="heading">Titel: </label>
                                </td>
                                <td valign="top" class="value  ${hasErrors(bean: auctionInstance, field: 'heading', 'errors')}">
                                    <g:textField name="heading" value="${auctionInstance?.heading}" />
                                </td>
                            </tr>
                                     
                                         <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="startprice">Startpreis: </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: auctionInstance, field: 'startprice', 'errors')}">
                                    <g:textField name="startprice" value="${fieldValue(bean: auctionInstance, field: 'startprice')}" />
                                </td>
                            </tr>
                                     
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="description">Beschreibung: </label>
                                </td>
                                <td valign="top" class="value" style=height:60px; style=width:250px; ${hasErrors(bean: auctionInstance, field: 'description', 'errors')}">
                                    <g:textArea name="description" value="${auctionInstance?.description}" />
                                </td>
                                
                                <tr class="prop">
                                <td valign="top" class="name">
                                
                                <label for="Bild">Bild &auml;ndern? </label>
                                
                                <td><label for "Datei">W&aumlhlen Sie bitte Ihr Auktionsbild:</label>
  					 			<input name="Datei" id="Datei" type="file" size="50" maxlength="5242880" accept="image">
                                </td>
                                	
                            </tr>
                        
                        
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons col_3 col" style=height:80px>
                    <span class="button"><g:actionSubmit class="save" action="update" value="Aktualisieren" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="L&ouml;schen" onclick="return confirm('Bist du sicher?');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
